import PropTypes from "prop-types";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";

export default function Com({ title, body, buttons }) {
	return (
		<div>
			<div className='diatitle'>
				<span>{title}</span>
				<FontAwesomeIcon
					icon={["fas", "times"]}
					style={{ fontSize: "26px", fontWeight: 400, cursor: "pointer" }}
				/>
			</div>
			<div className='diabody'>{body}</div>
			<div className='diabutton'>
				<button type='button'>{buttons[0]}</button>
				<button type='button'>{buttons[1]}</button>
			</div>
		</div>
	);
}
Com.propsType = {
	title: PropTypes.string,
	body: PropTypes.string,
	buttons: PropTypes.array,
};
